package com.liyiruo.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author liyiruo
 * @Description
 * @Date 2024/4/12 上午10:56
 */

@RequestMapping("/goto")
@Controller
public class WebController {
    private static final Logger logger = LoggerFactory.getLogger(WebController.class);

    @RequestMapping("/index")
    public String gotoIndex() {
        logger.info("进入了方法{}", this.getClass().getMethods()[0]);
        return "index";
    }


}
